<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
	String user = (String)session.getAttribute("login_user_name") ;
 %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<jsp:include page="meta.jsp"></jsp:include>
</head>
<body>
	<h2 class="header">欢迎使用本订票系统.</h2>
	<div class="row">
		<div class="col-md-3"></div>
		<div class="col-md-2">
			<a href="<%=basePath %>front/bus/busList.jsp">车次查询</a>
		</div>
		<div class="col-md-2">
			<%
					 if(null!=user && !"".equals(user)){
			%>
				欢迎<a href="<%=basePath%>front/home.jsp"><%=user %></a>回来 　</a>
				<a href="<%=basePath%>front/loginOut.jsp">退出</a>
			<%
					 }else{
			%>
						<a href="<%=basePath %>front/login.jsp">登录</a>
			<%
					}
			%>
			</div>
		<div class="col-md-2">
			<a href="<%=basePath %>front/register.jsp">注册</a>
		</div>
		<div class="col-md-3"></div>
	</div>
</body>
</html>